Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

docs(testing): simplify and accelerate path to Angular component testing #2879

Merged

Conversation

wardbell
Copy link
Contributor

@wardbell wardbell commented Nov 27, 2016

First commit

Rob Wormald recognized that we had no plunker for a simple component test.
Added the banner-specs for that purpose and also a quickstart-specs in the setup folder
Adjusted prose in testing and setup-systemjs-anatomy to call these out
Supporting adjustments to plunker builder and gulpfile
Test plunkers now open on a spec instead of on index.html

Second commit

Recognized that there was too much material getting in the way of learning to write Angular app tests.
Removed some stuff. Moved other stuff down.
Removed some of the "open on a spec" instructions because plunkers open in embedded-style

Third commit

Remove karma-htmlfile-reporter from karma.conf and package.json because no longer used.
Adjust a few other karma.conf settings.

@wardbell wardbell force-pushed the docs-testing-component-spec-plunker branch 3 times, most recently from f681596 to 0f17762 Compare November 28, 2016 06:55
@wardbell wardbell changed the title docs(testing): add plunker for simple component testing docs(testing): simplify and accelerate path to Angular component testing Nov 28, 2016
@wardbell wardbell force-pushed the docs-testing-component-spec-plunker branch 4 times, most recently from 77ffdd7 to 44e4096 Compare November 28, 2016 20:42
Copy link
Member

@Foxandxss Foxandxss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like what I see Ward, less daunting, easier to start with.

@naomiblack
Copy link
Contributor

naomiblack commented Nov 29, 2016

@wardbell wardbell force-pushed the docs-testing-component-spec-plunker branch 3 times, most recently from 9e61862 to 4fdf4b1 Compare December 3, 2016 01:53
Rob Wormald recognized that we had no plunker for a simple component test.
Added the banner-specs for that purpose and also a quickstart-specs in the setup folder
Adjusted prose in testing and setup-systemjs-anatomy to call these out
Supporting adjustments to plunker builder and gulpfile
Test plunkers now open on a spec instead of on index.html
Moved external template spec earlier because it is likely to be needed right away.
Now have plunkers for both inline and external template versions of `BannerComponent`
also comments on the optional "testing" folder and corrects var names to match
also leaves Jasmine Spec Runner output visible when tests finish
@wardbell wardbell force-pushed the docs-testing-component-spec-plunker branch from 4fdf4b1 to f5c372c Compare December 3, 2016 02:09
@wardbell wardbell merged commit 695df67 into angular:master Dec 5, 2016
@wardbell wardbell deleted the docs-testing-component-spec-plunker branch December 5, 2016 19:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants